<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html><head><title>Programming in Lua : p1.3</title>
<link rel="stylesheet" type="text/css" href="pil.css">
</head>
<body>
<p class="warning">
<A HREF="contents.html"><IMG TITLE="Programming in Lua (first edition)" SRC="capa.jpg" ALT="" ALIGN="left"></A>This first edition was written for Lua 5.0. While still largely relevant for later versions, there are some differences.<BR>The third edition targets Lua 5.2 and is available at <A HREF="http://www.amazon.com/exec/obidos/ASIN/859037985X/theprogrammil3-20">Amazon</A> and other bookstores.<BR>By buying the book, you also help to <A HREF="../donations.html">support the Lua project</A>.
</p>
<table width="100%" class="nav">
<tr>
<td width="10%" align="left"><a href="p1.2.html"><img border="0" src="left.png" alt="Previous"></a></td>
<td width="80%" align="center"><a href="index.html"><font face="Helvetica,Arial,sanserif">
<font color="gray">Programming in </font><font color="blue"> Lua</font>
</font></a></td>
<td width="10%" align="right"><a href="p1.4.html"><img border="0" src="right.png" alt="Next"></a></td>
</tr>
<tr>
<td width="10%" align="left"></td>
<td width="80%" align="center"><a href="index.html#0">Preface</a></td>
<td width="10%" align="right"></td></tr>
</table>
<hr/>
<p><h3>A Few Typographical Conventions</h3>

<p>The book encloses <code>"literal strings"</code> between double quotes
and single characters, like `<code>a</code>&acute;, between single quotes.
Strings that are used as patterns are also enclosed between single quotes,
like '<code>[%w_]*</code>'.
The book uses a courier font both for little <code>chunks of code</code>
and for <code>identifiers</code>.
Larger chunks of code are shown in display style:
<pre>
    -- program "Hello World"
    print("Hello World")         --> Hello World
</pre>
The notation <code>--></code> shows the output of a statement or,
occasionally, the result of an expression:
<pre>
    print(10)     --> 10
    13 + 3        --> 16
</pre>
Because a double hyphen (<code>--</code>) starts a comment in Lua,
there is no problem if you include those annotations in your programs.
Finally, the book uses the notation <code>&lt;--></code> to indicate that something
is equivalent to something else:
<pre>
    this     &lt;-->     that
</pre>
That is, there is no difference to Lua whether
you write <code>this</code> or <code>that</code>.

<hr/>
<table width="100%" class="nav">
<tr valign="top">
<td width="90%" align="left">
<small>
  Copyright &copy; 2003&ndash;2004 Roberto Ierusalimschy.  All rights reserved.
</small>
</td>
<td width="10%" align="right"><a href="p1.4.html"><img border="0" src="right.png" alt="Next"></a></td>
</tr>
</table>


</body></html>

